package com.ruoyi.safety.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; //添加
import com.ruoyi.safety.domain.SafetyPointInfo;
import com.ruoyi.safety.dto.SafetyPointInfoDto;
import org.apache.ibatis.annotations.Param;

/**
 * 测点基本信息Mapper接口
 *
 * @author ruoyi
 * @date 2024-10-30
 */
public interface SafetyPointInfoMapper extends BaseMapper<SafetyPointInfo> //修改
{
    /**
     * 查询测点基本信息
     *
     * @param pointCode 测点基本信息主键
     * @return 测点基本信息
     */
    public SafetyPointInfo selectSafetyPointInfoByPointCode(String pointCode);

    /**
     * 查询测点基本信息列表
     *
     * @param safetyPointInfo 测点基本信息
     * @return 测点基本信息集合
     */
    public List<SafetyPointInfo> selectSafetyPointInfoList(SafetyPointInfo safetyPointInfo);

    /**
     * 新增测点基本信息
     *
     * @param safetyPointInfo 测点基本信息
     * @return 结果
     */
    public int insertSafetyPointInfo(SafetyPointInfo safetyPointInfo);

    /**
     * 修改测点基本信息
     *
     * @param safetyPointInfo 测点基本信息
     * @return 结果
     */
    public int updateSafetyPointInfo(SafetyPointInfo safetyPointInfo);

    /**
     * 删除测点基本信息
     *
     * @param pointCode 测点基本信息主键
     * @return 结果
     */
    public int deleteSafetyPointInfoByPointCode(String pointCode);

    /**
     * 批量删除测点基本信息
     *
     * @param pointCodes 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSafetyPointInfoByPointCodes(String[] pointCodes);

    SafetyPointInfoDto selectSafetyPointInfoByPointCodeAndSubstationCode(@Param("redlineId") String redlineId,@Param("cameraStatus") String cameraStatus);

    List<SafetyPointInfo> getSafetyPointInfoListBySubstationCode(String substationCode);
}
